



const baseURL =  'http://152.136.185.210:7878/api/m5'
export const swiperList = function (options) {
	const url =  baseURL + options.url
	return new Promise((resolve, reject) => {
		return uni.request({
			url,
			method: options.method || "GET",
			data: options.data || {},
			//成功的回调
			success: (res) => {
				resolve(res)
			},
			//失败的回调
			fail: (err) => {
				uni.showToast({
					title:"获取数据失败",
					icon:err
				})
				reject(err)
			}
		})
	})
}


